import request from '@/utils/request'

export function getMenuList() {
  return request({
    url: '/api/system/menu/menuList',
    method: 'post'
  })
}

export function getMenu(data) {
  return request({
    url: '/api/system/menu/getMenu',
    method: 'post',
    data
  })
}

export function updateOrAddMenu(data) {
  return request({
    url: '/api/system/menu/updateOrAddMenu',
    method: 'post',
    data
  })
}

export function menuDelete(data) {
  return request({
    url: '/api/system/menu/menuDelete',
    method: 'delete',
    data
  })
}
